package com.neusoft.resturant.service;


import com.neusoft.resturant.entity.ResOrder;

import java.util.List;

/**
 * 订单Service接口
 * 
 * @author sl
 * @date 2023-12-20
 */
public interface IResOrderService 
{
    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    public ResOrder selectResOrderById(Long id);

    /**
     * 查询订单列表
     * 
     * @param resOrder 订单
     * @return 订单集合
     */
    public List<ResOrder> selectResOrderList(ResOrder resOrder);

    /**
     * 新增订单
     * 
     * @param resOrder 订单
     * @return 结果
     */
    public int insertResOrder(ResOrder resOrder);

    /**
     * 修改订单
     * 
     * @param resOrder 订单
     * @return 结果
     */
    public int updateResOrder(ResOrder resOrder);

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteResOrderByIds(Long[] ids);

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    public int deleteResOrderById(Long id);
}
